﻿namespace GoodAdmin.System;

public class UserSeedData : ISqlSugarEntitySeedData<SysUser>
{
    //[IgnoreUpdateAttribute]
    public IEnumerable<SysUser> HasData()
    {
        var password = CryptogramUtil.Sm2Encrypt("123456");
        return new[]
        {
            new SysUser{ Id=110000000000001,Account =RoleConst.SUPERADMIN,Name="超级管理员",Email="123456@qq.com",WorkId="G00001", Password=password, SystemMark=CommonConst.SYSTEM,Status=CommonConst.STATUS_ENABLE,Gender="male",OrgId=140000000000001,PositionId=140000000000000,Phone="18888888888" },
            new SysUser{ Id=110000000000002,Account ="IT",Name="程序员",Email="1234567@qq.com",WorkId="G00002", Password=password, Status=CommonConst.STATUS_ENABLE,Gender="male",OrgId=140000000000002,PositionId=140000000000002,Phone="18812345678" },
            new SysUser{ Id=110000000000003,Account ="HR",Name="人事",Email="12345678@qq.com",WorkId="G00003", Password=password, Status=CommonConst.STATUS_ENABLE,Gender="female",OrgId=140000000000002,PositionId=140000000000002,Phone="18822345678" },
        };
    }
}